/**
 * JAVACC DEMO 1.0
 */
package com.apache.tools;

import java.util.HashMap;
import java.util.Map;

/**
 * description:  自定义信息发布转换Map
 */
@SuppressWarnings("serial")
public class ToolsMap<V> extends HashMap<String, V> {

	public V put(String key, V value) {
		return super.put(key.toLowerCase(), value);
	}

	public void putAll(java.util.Map<? extends String, ? extends V> map) {
		for (Map.Entry<? extends String, ? extends V> e : map.entrySet())
			put(e.getKey(), e.getValue());
	}

	public V get(String key) {
		return super.get(key.toLowerCase());
	}
}
